package com.symbio.ishenapi.doctor.controller;

import com.symbio.ishenapi.common.controller.BaseController;
import io.jboot.web.controller.annotation.RequestMapping;
import com.symbio.ishenapi.doctor.qrcode.ZxingHandler;

import static com.symbio.ishenapi.doctor.qrcode.ZxingHandler.decode;
import static com.symbio.ishenapi.doctor.qrcode.ZxingHandler.encode;

@RequestMapping("/qrcode")
public class ZxingHandlerController extends BaseController {

        public static void main (String[]args) throws Exception {
            encode("http://www.baidu.com", 500, 500, "/Users/chenchen/test4.png");

            System.out.println(decode("/Users/chenchen/test4.png"));
        }
}
